home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 1419 / 1419.xpi / chrome / content / ietabOverlay.xul < prev    next >
Extensible Markup Language  |  2008-03-01  |  5KB  |  117 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://ietab/skin/ietab.css" type="text/css"?>
  3.  
  4. <!DOCTYPE window [
  5. <!ENTITY % ietabDTD SYSTEM "chrome://ietab/locale/ietab.dtd" >
  6. %ietabDTD;
  7. ]>
  8.  
  9. <overlay id="ietabOverlay"
  10.    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  11.  
  12. <script type="application/x-javascript">
  13. <![CDATA[function IeTab() {}]]>
  14. </script>
  15.  
  16. <script type="application/x-javascript" src="chrome://ietab/content/ietabUtils.js"/>
  17. <script type="application/x-javascript" src="chrome://ietab/content/ietabDrag.js"/>
  18. <script type="application/x-javascript" src="chrome://ietab/content/ietabExtApp.js"/>
  19. <script type="application/x-javascript" src="chrome://ietab/content/ietabOverlay.js"/>
  20.  
  21. <!-- contentArea context menu -->
  22. <popup id="contentAreaContextMenu">
  23.    <menuitem id="ietab-viewpage" insertbefore="context-bookmarkpage"
  24.       label="&popup.viewpage;" accesskey="&popup.viewpage.key;"
  25.       tooltip="ietab-toolbar-tooltip"
  26.       iconic="menuitem-iconic ietab-icon-viewpage"
  27.       onclick="gIeTab.viewPage(event);"
  28.       oncommand="gIeTab.viewPage(event);"/>
  29.  
  30.    <menuitem id="ietab-viewpage-extapp" insertbefore="context-bookmarkpage"
  31.       label="&popup.viewpage.extapp;" accesskey="&popup.viewpage.extapp.key;"
  32.       iconic="menuitem-iconic ietab-icon-viewpage-extapp"
  33.       oncommand="gIeTab.viewPageInExtApp();"/>
  34.  
  35.    <menuseparator id="ietab-viewpage-sep" insertbefore="context-bookmarkpage"/>
  36.  
  37.    <menuitem id="ietab-viewlink-extapp" insertafter="context-openlinkintab"
  38.       label="&popup.viewlink.extapp;" accesskey="&popup.viewlink.extapp.key;"
  39.       iconic="menuitem-iconic ietab-icon-viewlink-extapp"
  40.       oncommand="gIeTab.viewLinkInExtApp();"/>
  41.  
  42.    <menuitem id="ietab-viewlink" insertafter="context-openlinkintab"
  43.       label="&popup.viewlink;" accesskey="&popup.viewlink.key;"
  44.       iconic="menuitem-iconic ietab-icon-viewlink"
  45.       onclick="gIeTab.viewLink(event);"
  46.       oncommand="gIeTab.viewLink(event);"/>
  47. </popup>
  48.  
  49. <!-- statusbar -->
  50. <statusbar id="status-bar">
  51.    <deck id="ietab-status-deck" persist="insertbefore insertafter"
  52.           ondraggesture="nsDragAndDrop.startDrag(event,ietab_statObserver);">
  53.    <statusbarpanel id="ietab-status" hidden="true"
  54.          tooltip="ietab-toolbar-tooltip"
  55.          onclick="gIeTab.clickButton(event);">
  56.       <image id="ietab-status-image" engine="fx"/>
  57.    </statusbarpanel>
  58.    </deck>
  59. </statusbar>
  60.  
  61. <!-- bookmark context menu -->
  62. <popup id="placesContext">
  63.    <menuitem id="ietab-bookmark"
  64.       label="&popup.bookmark;" accesskey="&popup.bookmark.key;"
  65.       insertbefore="placesContext_openSeparator"
  66.       iconic="menuitem-iconic ietab-icon-bookmark"/>
  67.    <menuitem id="ietab-bookmark-extapp"
  68.       label="&popup.bookmark.extapp;" accesskey="&popup.bookmark.extapp.key;"
  69.       insertbefore="placesContext_openSeparator"
  70.       iconic="menuitem-iconic ietab-icon-bookmark-extapp"/>
  71. </popup>
  72.  
  73. <window id="main-window">
  74.    <!-- tabbar context menu -->
  75.    <popup id="ietabTabbarContextMenu">
  76.       <menuseparator id="ietab-tabbar-sep"/>
  77.       <menuitem id="ietab-tabbar-switch"
  78.          label="&popup.tabbar.switch;" accesskey="&popup.tabbar.switch.key;"
  79.          tooltip="ietab-toolbar-tooltip"
  80.          iconic="menuitem-iconic ietab-icon-tabbar-switch" engine="fx"
  81.          onclick="gIeTab.viewPage(event);"
  82.          oncommand="gIeTab.viewPage(event);"/>
  83.       <menuitem id="ietab-tabbar-extapp"
  84.          label="&popup.tabbar.extapp;" accesskey="&popup.tabbar.extapp.key;"
  85.          iconic="menuitem-iconic ietab-icon-tabbar-extapp"
  86.          oncommand="gIeTab.viewPageInExtApp(gBrowser.mContextTab);"/>
  87.    </popup>
  88.  
  89.    <!-- tooltips -->
  90.     <tooltip id="ietab-toolbar-tooltip" noautohide="true" orient="vertical" position="before_start" style="padding:2px;">
  91.         <vbox>
  92.             <label value="&toolbar.button.tooltip0;" style="margin:2px;"/>
  93.             <label value="&toolbar.button.tooltip1;" style="margin:2px;"/>
  94.             <label value="&toolbar.button.tooltip2;" style="margin:2px;"/>
  95.         </vbox>
  96.     </tooltip>
  97. </window>
  98.  
  99. <!-- firefox toolbar -->
  100. <toolbarpalette id="BrowserToolbarPalette">
  101.    <toolbarbutton id="ietab-button" engine="fx"
  102.       class="toolbarbutton-1"
  103.       label="&toolbar.button.label;"
  104.       tooltip="ietab-toolbar-tooltip"
  105.       onclick="gIeTab.clickButton(event);"/>
  106. </toolbarpalette>
  107.  
  108. <!-- firefox toolsmenu -->
  109. <menupopup id="menu_ToolsPopup">
  110.    <menuitem id="ietab-toolsmenu" hidden="true"
  111.       label="&toolsmenu.label;" insertbefore="prefSep"
  112.       iconic="menuitem-iconic ietab-icon-toolsmenu"
  113.       oncommand="gIeTab.openPrefDialog();"/>
  114. </menupopup>
  115.  
  116. </overlay>
  117.